package com.star.news.enums;

import com.star.common.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lintianyi
 * @version 1.0
 * @date 2024/6/25 17:25
 */
@AllArgsConstructor
@Getter
public enum TopType implements BaseEnum<Integer> {
    /**
     * 是否置顶（0否，1是）
     */
    NO(0, "否"),
    YES(1, "是");

    private final Integer code;
    private final String name;


    @Override
    public String getTypeCode() {
        return "top_type";
    }

    @Override
    public String getTypeName() {
        return "是否置顶";
    }
}
